const mongoose = require('../index');
const moment = require('moment');
const noteSchema = new mongoose.Schema({
    title:String,
    content:String,
    addTime:{
        type:String,
        default:moment().format('YYYY-MM-DD HH:mm:ss')
    }
})

module.exports = mongoose.model('notes',noteSchema);